package com.joey.cloud.flowable.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.joey.cloud.communal.constant.BaseConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 任务审批意见
 */
@ApiModel(value="任务审批信息")
@Data
public class TaskCommentVo implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "任务id")
    private String taskId;
    @ApiModelProperty(value = "任务环节key")
    private String taskKey;
    @ApiModelProperty(value = "任务环节名称")
    private String taskName;
    @ApiModelProperty(value = "任务创建时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = BaseConstant.entity_date_format)
    private Date taskTime;
    @ApiModelProperty(value = "任务指派人id")
    private String assignee;
    @ApiModelProperty(value = "任务指派人名称")
    private String assigneeName;
    @ApiModelProperty(value = "审批状态")
    private String taskStatus;
    @ApiModelProperty(value = "审批结果")
    private String taskMessage;
    @ApiModelProperty(value = "审批意见")
    private String taskComment;
    @ApiModelProperty(value = "审批时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = BaseConstant.entity_date_format)
    private LocalDateTime createTime;
    @ApiModelProperty(value = "审批人id")
    private String userId;
    @ApiModelProperty(value = "审批人名称")
    private String userName;
}
